First deag the box away from equilibrium point (horizontally). Then find out relations between the spring force and the displacement ... The purpose for this applet is for you to find out how easily to create a java simulation with "Easy Java Simulation". Click the following link to find out how it was created with EJS. (demonstration with flash) The model is : dvx/dt = -k*x/m You can change the model. For example change dvx/dt to (-k*x-0.1*vx)/m then you will have dampped oscillation. Try it and click the run button to generate new simulation for you in the ejs popup window.
Enjoy the fun of Physics! You can access this simulation online from
Spring force F=-k*x
Designed by Fu-Kwun Hwang (http://www.phy.ntnu.edu.tw/ntnujava/)
Deptartment of Physics, National Taiwan Normal University, Taiwan